function avg_acc = test_gogo_histogram_norm(X1train, X2train, ytrain, gidtrain, norm_type, C_param, gamma_param, coef0_param, degree_param)
%GOGO Summary of this function goes here
%   Detailed explanation goes here
    avg_acc = 0;
    for gid=1:3
        clear tr_data; clear tr_label;
        clear te_data; clear te_label;
        [tr_data, tr_label, te_data, te_label] = ...
                gen_splitted_data(X1train, X2train, ytrain, gidtrain, ...
                                  gid, norm_type);
        
        % normalize before svm
        [tr_data, norm_params] = norm_data(tr_data);
        te_data= norm_data(te_data, norm_params);
        
        acc = run_svm(tr_data, tr_label, te_data, te_label, C_param, gamma_param, coef0_param, degree_param);
        avg_acc = avg_acc + acc;
    end
    avg_acc = avg_acc / 3;
end
